package com.itheima.test;

import lombok.Data;

@Data
public abstract class Demo1 {
    private int age;

    public abstract void run1();

    public Demo1() {
    }

    public Demo1(int age) {
        this.age = age;
    }

    public void run(){
        System.out.println("Hello World");
    }

    /*@Override
    public String toString() {
        return "Demo1{" +
                "age=" + age +
                '}';
    }*/
}
